.. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. .. include:: ../Includes.txt .. _tutorial-signal-slot-handler: Use signal / slot handler ========================= Adding a new signal slot is easy. Just add code like the following in your ``ext_localconf.php``: .. code:: php include_once(t3lib_extMgm::extPath($_EXTKEY).'pi1/class.ThRatingSignalSlotHandler.php'); //Implement handling of signals from rating $signalSlotDispatcher = t3lib_div::makeInstance('Tx_Extbase_SignalSlot_Dispatcher'); $signalSlotDispatcher->connect('Thucke\\ThRating\\Controller\\VoteController', 'afterCreateAction', 'ThRatingSignalSlotHandler', 'afterCreateRatingAction',FALSE); Second you may create the file e.g. with the following content: .. code:: php exec_UPDATEquery( $signalSlotMessage['tablename'], 'uid='.$signalSlotMessage['uid'], $updateFields); $customContent['staticPreContent']='This ist my staticPreContent'; $customContent['staticPostContent']='This ist my staticPostContent'; $customContent['preContent']='This ist my preContent'; $customContent['postContent']='This ist my postContent'; } } ?> This handler will update the field tstamp of the rated row each time a rating is added.